import java.sql.*;

public class test {
    public static void main(String[] args) {
        String url = "jdbc:mysql://192.168.10.102:3306/car_data_report?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC";
        String user = "root";
        String password = "000000";  // 确保与 MySQL 中一致

        try (Connection conn = DriverManager.getConnection(url, user, password)) {
            System.out.println("连接成功！");
        } catch (SQLException e) {
            System.err.println("连接失败，错误信息：");
            e.printStackTrace();  // 重点查看报错中的客户端 IP 和错误码
        }
    }
}